﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace NDF.XnaLibrary
{
	[Serializable]
	public struct CastingActionInfo
	{
		/// <summary>
		/// Gets or sets the ID of the skill.
		/// </summary>
		public int SkillId;

		/// <summary>
		/// Constructs a new CastingActionInfo instance with the given skill name.
		/// </summary>
		/// <param name="skill">The skill that must be cast.</param>
		public CastingActionInfo(int skillId)
		{
			SkillId = skillId;
		}

		public override string ToString()
		{
			return "Skill ID: " + SkillId;
		}

		public static bool operator ==(CastingActionInfo info1, CastingActionInfo info2)
		{
			return info1.SkillId == info2.SkillId;
		}

		public static bool operator !=(CastingActionInfo info1, CastingActionInfo info2)
		{
			return !(info1 == info2);
		}
	}
}
